Skip to content

Conversation

@saulshanabrook
Copy link
Member

No description provided.

@saulshanabrook
Copy link
Member Author

@actions-user changelog

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new method egraph.function_values(fn) to export all function values, providing a Python equivalent to the egglog print-function command.

  • Adds function_values() method to EGraph class that returns a dictionary mapping function calls to their values
  • Refactors _callable_to_egg() to return both CallableRef and string for better internal API
  • Updates documentation and changelog to reflect the new functionality

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
python/egglog/egraph.py Implements function_values() method and refactors _callable_to_egg() to return tuple
python/tests/test_high_level.py Adds test for the new function_values() functionality
docs/reference/egglog-translation.md Documents the new method as equivalent to print-function command
docs/changelog.md Records the new feature in the changelog

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 2, 2025

CodSpeed Instrumentation Performance Report

Merging #340 will not alter performance

Comparing tree (fa0b5ea) with main (3158446)

Summary

✅ 7 untouched benchmarks

@saulshanabrook saulshanabrook merged commit d7e81a3 into main Sep 2, 2025
5 checks passed
@saulshanabrook saulshanabrook deleted the tree branch September 2, 2025 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants